<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <canvas width="512" height="512"></canvas>
  <script src="/js/mesh.js"></script>
  <script>
    const worker = new Worker('./basic.worker.js');
    const canvas = document.querySelector('canvas');
    const offscreenCanvas = canvas.transferControlToOffscreen();
    worker.postMessage({type: 'created', canvas: offscreenCanvas}, [offscreenCanvas]);
  </script>
</body>
</html>